@model WeatherForecast.Mvc.Models.ExtendedRegisterViewModel
@{
    ViewBag.Title = "Register";
}

<hgroup class="title">
    <h1>@ViewBag.Title.</h1>
</hgroup>

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary()
    
    <fieldset class="form-horizontal">
        <legend>Create a new account.</legend>
        <div class="control-group">
            @Html.LabelFor(m => m.UserName, new { @class = "control-label" })
            <div class="controls">
                @Html.TextBoxFor(m => m.UserName)
            </div>
        </div>
        <div class="control-group">
            @Html.LabelFor(m => m.Password, new { @class = "control-label" })
            <div class="controls">
                @Html.PasswordFor(m => m.Password)
            </div>
        </div>
        <div class="control-group">
            @Html.LabelFor(m => m.ConfirmPassword, new { @class = "control-label" })
            <div class="controls">
                @Html.PasswordFor(m => m.ConfirmPassword)
            </div>
        </div>
        <div class="control-group">
            @Html.LabelFor(m => m.FirstName, new { @class = "control-label" })
                <div class="controls">
                    @Html.TextBoxFor(m => m.FirstName)
                    </div>
            </div>
        <div class="control-group">
            @Html.LabelFor(m => m.LastName, new { @class = "control-label" })
                <div class="controls">
                    @Html.TextBoxFor(m => m.LastName)
                    </div>
                </div>
        <div class="control-group">
            @Html.LabelFor(m => m.Description, new { @class = "control-label" })
                <div class="controls">
                    @Html.TextBoxFor(m => m.Description)
                    </div>
                </div>
        <div >
            <input type="submit" value="Register" class="btn" />
        </div>
    </fieldset>
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
